/**
 * 
 */
package cn.java.innerclass;

/**
* 课程查询类
* @author 攀博课堂
* @version v1.0
*/
public class PbQueryCourse {
	
	//查询课程列表,传入查询条件
	public PbCourse[] queryList(QueryParams queryParams) {
		
		System.out.println(queryParams);
		//查询过程略..
		return null;
		
	}
	//查询课程列表总数
	public long queryListCount(QueryParams queryParams) {
		return 0;
	}
	
	//课程查询条件类，存在课程查询条件
	public static  class QueryParams{
		
		private long id;//课程编号
		private String name;//课程名称
		//...
		/**
		 * @return the id
		 */
		public long getId() {
			return id;
		}
		/**
		 * @param id the id to set
		 */
		public void setId(long id) {
			this.id = id;
		}
		/**
		 * @return the name
		 */
		public String getName() {
			return name;
		}
		/**
		 * @param name the name to set
		 */
		public void setName(String name) {
			this.name = name;
		}
		@Override
		public String toString() {
			return "QueryParams [id=" + id + ", name=" + name + "]";
		}
		
		
		
	}
	
	public static void main(String[] args) {
		
		PbQueryCourse pbQueryCourse = new PbQueryCourse();
		//构造查询条件对象
		QueryParams queryParams = new QueryParams();
		queryParams.setId(100L);
		PbCourse[] queryList = pbQueryCourse.queryList(queryParams);
		
	}

}
